package com.ruoyi.assets.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.assets.mapper.StoragereceiptMapper;
import com.ruoyi.assets.domain.Storagereceipt;
import com.ruoyi.assets.service.IStoragereceiptService;

/**
 * 入库管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-05-04
 */
@Service
public class StoragereceiptServiceImpl implements IStoragereceiptService 
{
    @Autowired
    private StoragereceiptMapper storagereceiptMapper;

    /**
     * 查询入库管理
     * 
     * @param storageReceiptid 入库管理主键
     * @return 入库管理
     */
    @Override
    public Storagereceipt selectStoragereceiptByStorageReceiptid(Long storageReceiptid)
    {
        return storagereceiptMapper.selectStoragereceiptByStorageReceiptid(storageReceiptid);
    }

    /**
     * 查询入库管理列表
     * 
     * @param storagereceipt 入库管理
     * @return 入库管理
     */
    @Override
    public List<Storagereceipt> selectStoragereceiptList(Storagereceipt storagereceipt)
    {
        return storagereceiptMapper.selectStoragereceiptList(storagereceipt);
    }

    /**
     * 新增入库管理
     * 
     * @param storagereceipt 入库管理
     * @return 结果
     */
    @Override
    public int insertStoragereceipt(Storagereceipt storagereceipt)
    {
        return storagereceiptMapper.insertStoragereceipt(storagereceipt);
    }

    /**
     * 修改入库管理
     * 
     * @param storagereceipt 入库管理
     * @return 结果
     */
    @Override
    public int updateStoragereceipt(Storagereceipt storagereceipt)
    {
        return storagereceiptMapper.updateStoragereceipt(storagereceipt);
    }

    /**
     * 批量删除入库管理
     * 
     * @param storageReceiptids 需要删除的入库管理主键
     * @return 结果
     */
    @Override
    public int deleteStoragereceiptByStorageReceiptids(Long[] storageReceiptids)
    {
        return storagereceiptMapper.deleteStoragereceiptByStorageReceiptids(storageReceiptids);
    }

    /**
     * 删除入库管理信息
     * 
     * @param storageReceiptid 入库管理主键
     * @return 结果
     */
    @Override
    public int deleteStoragereceiptByStorageReceiptid(Long storageReceiptid)
    {
        return storagereceiptMapper.deleteStoragereceiptByStorageReceiptid(storageReceiptid);
    }
}
